home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / WORDMISC / WPUTIL.LZH / WPINFO.ARC / FONTQD.TXT next >
Text File  |  1988-05-16  |  13KB  |  312 lines

  1. This is a "quick and dirty" guide to creating soft font definitions
  2. for WordPerfect v 5.0 with the PTR program.  It is NOT 
  3. a comprehensive tutorial on the subject, but should serve as an
  4. interim guide until I can get a real tutorial finished and uploaded. 
  5. It will work for HP LaserJets and compatibles; some of the
  6. information may be useful for other printers.
  7.  
  8. 1.  You need some information about the font before entering the PTR 
  9.     program.  The following is needed:
  10.  
  11.     a.  The name of the font file as it exists on your disk.
  12.  
  13.     b.  Information about the font definition itself.  One way to
  14.         obtain this info is from the program FONTINFO, available in
  15.         WPSG DL 2 as FONTIN.ARC.  The specific info you'll need is:
  16.  
  17.         (1) Orientation
  18.         (2) Height, in points
  19.         (3) Style (e.g. italic, upright)
  20.         (4) Weight (number or name -- e.g. "5" or "bold")
  21.         (5) Symbol set (e.g. USASCII or Roman8)
  22.         (6) Pitch (non-poportional fonts only)
  23.         (7) Type face (name _and_ number)
  24.  
  25.     c.  For proportional fonts only, the width of each character in the 
  26.         font.  One way to obtain this information is with GETWIDTH, 
  27.         which is included (along with some other utilities) in 
  28.         FONTFL.ARC in WPSG DL 2.
  29.  
  30. 2.  Start PTR with the name of the printer definition file; for
  31.     example:
  32.  
  33.         PTR HPLASEII.PRS
  34.  
  35.     In general:
  36.  
  37.         To select a menu item, either highlight the item and press
  38.         [Enter] or type an asterisk beside the item and press
  39.         [Exit] (F7).  One method or the other works on every screen;
  40.         on some screens, both do.
  41.  
  42.         To de-select (i.e., remove an asterisk), highlight the
  43.         item and press [Backspace].
  44.  
  45.         To back up the menu structure, press [Exit].
  46.  
  47.         To see online help (which is very good and context-sensitive),
  48.         press [Help] (F3).
  49.  
  50.         To cancel, press [Cancel] (F1).
  51.  
  52. 3.  The name of the printer will be highlighted.  Press [Enter].
  53.  
  54. 4.  A list of functions will appear (this is essentially the PTR
  55.     program's "Main Menu").  Highlight "Fonts" and press [Enter].
  56.  
  57. 5.  A list of currently defined fonts will appear.  Select "Add"
  58.     (press "1").
  59.  
  60. 6.  PTR will prompt you to highlight a font to use as a pattern and
  61.     press [Enter].  Select a font as close as possible to the one you
  62.     are trying to define.  The closer you can come, the less work you
  63.     will have to do in revising the font.  In most cases, this will
  64.     be if you can match proportional fonts to proportional fonts or 
  65.     fixed fonts to fixed fonts, if you can match the point sizes, and
  66.     if you can match serif to serif or sans-serif to sans-serif.
  67.  
  68. 7.  PTR will prompt you to name the font.  Do so.
  69.  
  70. 8.  PTR will display the list of fonts with the font you named
  71.     included and highlighted.  Press [Enter].
  72.  
  73. 9.  PTR will display the "Fonts" screen, listing a number of
  74.     operations you can perform on each font.  You will have to
  75.     perform any operations affect functions in which your font
  76.     differs from that you selected as a pattern.
  77.  
  78.     a.  TYPEFACE.  As far as I can determine, this selection only
  79.         affects the appearance of the font on the print preview
  80.         display (WP's Shift-F7 View option).  If you don't care about
  81.         the appearance of the fonts in View, you can skip this option
  82.         entirely.
  83.     
  84.         If the typeface of your font differs from your pattern 
  85.         (e.g., if you're using a Times Roman font as a pattern for 
  86.         a Helvetica font), highlight "Typeface" and press [Enter].  The
  87.         "Typeface" screen that appears lists all currently defined
  88.         typefaces.  If the desired typeface is listed, select it by
  89.         typing an asterisk (*) beside the name and pressing Exit (F7).
  90.         If it does not appear, add it by selecting "Add," choosing a
  91.         pattern, and naming the typeface.  Then go into the typeface
  92.         definition (highlight the typeface and press [Enter]). 
  93.         Change whatever is necessary in the typeface defintion.  (I'm
  94.         not going to go into detail on these in this "quick-and-dirty"
  95.         guide.  The help screens here are pretty good, and with them
  96.         you should be able to create a typeface definition that looks 
  97.         something like the font.)
  98.  
  99.     b.  ORIENTATIONS.  If the orientation of the font you are
  100.         defining differs from the orientation of the pattern font,
  101.         so indicate.  Do this by:
  102.  
  103.         (1) Selecting Orientations from the Fonts screen (highlight
  104.             Orientations and press [Enter].
  105.  
  106.         (2) Typing * beside the correct orientation and pressing
  107.             [Exit].
  108.  
  109.     c.  CHARACTER MAP.  If the character map of the font you are
  110.         defining differs from the character map of the parent font,
  111.         so indicate.  Do this by:
  112.  
  113.         (1) Selecting Character Map from the Fonts screen (highlight
  114.             Character Map and press [Enter]).
  115.  
  116.         (2) Typing * beside the correct character map and pressing
  117.             [Exit].
  118.  
  119.         (3) If the character map you need is not on the list, you
  120.             will have to create a character map -- unless you can
  121.             live with one of those listed.  Select "Add," choose a
  122.             pattern, name a new map, then modify it.  How to modify
  123.             it is beyond the scope of this quick-and-dirty guide;
  124.             follow the help screens.
  125.  
  126.     d.  SIZE AND SPACING INFORMATION.  If the size and spacing 
  127.         information of the font you are defining differs from the 
  128.         size and spacing information of the pattern font, so indicate.
  129.         Do this by:
  130.  
  131.         (1) Selecting size and spacing informations from the Fonts 
  132.             screen (highlight size and spacing informations and press 
  133.             [Enter]).
  134.  
  135.         (2) Entering the revised information on the Size and Spacing
  136.             Information screen.  Most of this information can
  137.             probably be left "as is," particularly if you have
  138.             selected a proportional pattern for a proportional font
  139.             (or a fixed pattern for a fixed font) and have matched
  140.             point sizes between pattern and defined fonts.  Each
  141.             field on this screen is defined on a help screen.
  142.  
  143.         (3) For proportional fonts, revise (if necessary) the 
  144.             proportional spacing table.  Highlight the name of the
  145.             table (the last item above the double line on the screen)
  146.             and press [Enter].  Then enter the character widths for
  147.             each character in the font.
  148.  
  149.         (4) When all information has been entered, press [Exit] to
  150.             return to the Fonts screen.
  151.  
  152.     e.  LOAD AND SELECT STRINGS.  You will definitely have to change
  153.         the select string, and may have to change the load string. 
  154.         Do either of these by:
  155.  
  156.         (1) Selecting Load and Select Strings from the Fonts screen 
  157.             (highlight Load and Select Strings and press [Enter].
  158.  
  159.         (2) Load Font string.  This is only necessary if you plan to 
  160.             have WordPerfect download the font on demand.  If you want
  161.             WP to do this:
  162.  
  163.             (a) Select a font ID for the font.  In general, this will
  164.                 be a number between 0 and 31.
  165.  
  166.             (b) Highlight Load String and press [Enter].  This will
  167.                 put you into the editing window.
  168.  
  169.             (c) Enter a string in the following form:
  170.  
  171.                     [27]"*c#D"DOWNLOAD("filename") 
  172.  
  173.                 where # is the font ID and "filename" is the file
  174.                 name of the font (do NOT enter a pathname to the file
  175.                 -- that is taken from WP's printer screens at
  176.                 download time).
  177.  
  178.                 For example, if the font ID you've assigned is 27
  179.                 and the file name is TR12I.SFP, you would enter":
  180.  
  181.                     [27]"c*27D"DOWNLOAD("tr12i.sfp")
  182.  
  183.                 NOTE: punctuation is important -- enter it exactly
  184.                       as shown.  The 'c' following the [27] must
  185.                       be lower case and the 'D' following the
  186.                       font ID must be upper case.
  187.  
  188.             (d) Press [Exit] when you have entered the string.
  189.  
  190.         (2) Select Font string.  This must always be modified.  This
  191.             consists of PTR program representations of the HP
  192.             LaserJet command language.  The command is of the form:
  193.  
  194.                 charset spacing horiz vert style weight typeface
  195.  
  196.             where:
  197.  
  198.             -   charset is the character set; USASCII is us, Roman8
  199.                 is r8, line draw is ld
  200.             -   spacing indicates whether or not the font is
  201.                 proportional; fx is fixed, ps is proportional
  202.             -   horiz indicates the pitch (required for fixed fonts
  203.                 only); e.g, h12 is 12-pitch or 12 cpi
  204.             -   vert indicates the height, in points; e.g., v10 is
  205.                 10 points
  206.             -   style is ital (italic) or uprite (non-italic)
  207.             -   weight is the weight: bold, med, or lite (in general,
  208.                 bold works for weight 3 and above; lite for negative
  209.                 weights, med for 0 or 1)
  210.             -   typeface is cour for courier, goth for letter gothic,
  211.                 helv for helvetica, line for line printer, prest 
  212.                 for prestige, tms for Times Roman
  213.  
  214.             For example, 10 pt Times Roman bold, Roman8 character set
  215.             would be entered:
  216.  
  217.                 r8 ps v10 uprite bold tms
  218.  
  219.             12 point Courier italic, USASCII typeface would be:
  220.  
  221.                 us fx v12 h10 ital med cour
  222.  
  223.             You can only enter variables that have been defined to
  224.             the PTR program.  If for example, you try to enter a
  225.             19-point font (as v19), you'll get an error message,
  226.             because v19 is not a known variable.  Fortunately, you
  227.             can define new variables as needed.  Press F9 to access
  228.             PTR's list of defined variables.  Then add the variable
  229.             and the definition to the list:
  230.  
  231.             -   Select Add
  232.  
  233.             -   Select an appropriate pattern
  234.  
  235.             -   Name the variable
  236.  
  237.             -   Highlight the new variable name and press [Enter]
  238.  
  239.             -   Enter the appropriate string (using the pattern as
  240.                 a guide)
  241.  
  242.             Defining anything more sophisticated than new point sizes
  243.             or pitches will probably require the LaserJet reference
  244.             manual or an appropriate alternative.
  245.  
  246.     f.  GROUPS and RESOURCES.  You can probably get away without
  247.         doing anything to these.  In any case, they're beyond the
  248.         scope of this quick-and-dirty guide.
  249.  
  250.     g.  AUTOMATIC FONT CHANGES.  If you plan to use your newly
  251.         defined font as a base font, you'll need to designate other
  252.         fonts for automatic font changes (if your desired fonts
  253.         differ from those selected for the pattern font).
  254.  
  255.         (1) Select Automatic Font Changes and press [Enter]
  256.  
  257.         (2) Select the desired feature and press [Enter].  A list of
  258.             defined fonts will appear.
  259.  
  260.         (3) Highlight the desired font, type an asterisk, and press
  261.             [Exit]
  262.  
  263.     h.  SUBSTITUTE FONTS.  If you wish to designate substitute fonts,
  264.         highlight Substutte Fonts on the Fonts screen and press
  265.         [Enter].  The Substitute Fonts screen will appear.
  266.  
  267.         This screen displays all fonts of the current printer definition 
  268.         and gives a prioritized list of which (if any) can substitute for 
  269.         the current font.  A substitute font is one that WP may use to 
  270.         print any character not defined in the current font.  Up to nine 
  271.         substitute fonts can be listed in priority of the size and 
  272.         appearance best matching the current font.
  273.  
  274.         Valid priorities are 1 through 9, with 1 being the highest.
  275.         For each font you may type any priority, but the current 
  276.         priority list is recalculated if necessary to keep all 
  277.         priorities consecutive.  You may type asterisk (*) for
  278.         the next unused priority or if priority is unimportant.
  279.  
  280.     i.  QUALITY.  Ignore for the HP Laserjet and compatibles.
  281.  
  282.     j.  MISCELLANEOUS FONT FEATURES.  The only one of these you may
  283.         want to change is Use Font Only for Automatic Font Changes.
  284.         If you do NOT want the font to be usable as a base font:
  285.  
  286.         (1) From the Fonts screen, highlight Miscellaneous Font
  287.             Features and press [Enter]
  288.  
  289.         (2) Type an asterisk next to Use Font Only for Automatic
  290.             Font Changes
  291.  
  292.         (3) Press [Exit]
  293.  
  294. 10. When you've finished, exit PTR, saving your new printer
  295.     definition.  Free [Exit] until PTR prompts you with "Save File?"
  296.     Answer "Y", then indicate the filename and save it.
  297.  
  298. I hope this quick-and-dirty guide is some help.  If you need further
  299. assistance, use the help screens.  If they don't answer your
  300. question, leave me a message on the WPSG forum (sections 0 or 2); if
  301. I can't help you, someone else probably will be able to.
  302.  
  303. Stu Bloom
  304. CIS ID 72267,3201
  305.  
  306.  
  307.     
  308.  
  309.  
  310.  
  311.  
  312.